import request from '@/plugins/request';
var pre = '/touch';
var testPre = '/test';
if (process.env.NODE_ENV !== "development") {
    pre = '/api/sa/epid-prevention' + pre;
    testPre = '/api/sa/epid-prevention' + testPre;
}

// 查询涉中高风险人员信息
export function getPageForTouchForeign(data) {
    return request({
      url: `${pre}/page`,
      method: "post",
      data,
    });
  }

// 保存涉外密接人员信息
export function saveTouchForeignPerson(data) {
    return request({
        url: `${pre}/save`,
        method: 'post',
        data
    });
}
// 查询涉外密接人员详情
export function queryTouchForeignDetail(data) {
    return request({
        url: `${pre}/detail${data}`,
        method: 'get',
    });
}
// // 删除涉外密接人员详情
export function deleteTouchForeign(data) {
    return request({
        url: `${pre}/del`,
        method: 'post',
        data
    });
}

//查询代他人报备姓名
export function queryReportorList(data) {
    return request({
        url: `${pre}/reportorlist`,
        method: 'post',
        data
    });
}

// 保存核酸检测信息
export function saveTestInfo(data, chkFrequency) {
    return request({
        url: `${testPre}/save?chkFrequency=${chkFrequency}`,
        method: 'post',
        data
    });
}

// 查询核酸检测信息详情
export function queryTestList(data) {
    return request({
        url: `${testPre}/list`,
        method: 'post',
        data
    });
}

// // 删除核酸检测信息
export function deleteTestInfo(data) {
    return request({
        url: `${testPre}/del`,
        method: 'post',
        data
    });
}